var a = -10;
function datelist() {
	a = a + 10;
	test(a);
}
function test(a) {
	$.ajax({
				type : "POST", // 请求方式
				url : "indexDataListServlet.scx.szb", // 请求路径
				cache : false,
				data : "sxc=" + a, // 传参
				dataType : 'json', // 返回值类型
				success : function(msg) {
					var cc = 0;
					for (i in msg) {
						cc++;
						var information = {
							recruitId : msg[i].recruitId,
							jobName : msg[i].jobName,
							reType : msg[i].reType
						};
						$("<li><a href='Search/showInformation.jsp?/scx/123szb="
										+ information["recruitId"]
										+ "'>"
										+ "<div class='a_left'>"
										+ "<div class='ico'><img src='images/menu/"+information["reType"]+"'/></div>"
										+ "</div>"
										+ " <div class='a_right' style='border-bottom:none;'>"
										+ " <h2>"
										+ information["jobName"]
										+ "</h2>"
										+ "<p class='place'> </p>" + " </div>"
										+ " </a> </li>").appendTo("#DataList");
					}
					if (cc != 10) {
						$("#bt").attr("value", "已全部加载");
					}
				},
				error : function() {
					alert("error");
				}
			});
}
